<%--
  Created by IntelliJ IDEA.
  User: tao95
  Date: 2017/5/7
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    String staticPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
%>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>实验室课程表后台管理中心</title>
    <link rel="stylesheet" href="/static/css/pintuer.css">
    <link rel="stylesheet" href="/static/css/admin.css">
    <script src="/static/js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="/static/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />实验室课程表后台管理中心</h1>
    </div>
    <div class="head-l">


            <c:choose>
                <c:when test="${sessionScope.admin != null}">
                    <a class="button button-little bg-red" style="float:right" href="<%=basePath%>user/loginOut">
                    <span class="icon-power-off"></span>退出登录</c:when>
                <c:otherwise>
                    <a class="button button-little bg-red"  style="float:right" href="<%=basePath%>login">
                     <span class="icon-power-off"></span>登录</c:otherwise>
            </c:choose>
        </a>
    </div>
</div>
<c:if test="${sessionScope.admin != null}">
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>

        <h2><span class="icon-user"></span>基本设置</h2>
        <ul style="display:block">
            <li><a href="<%=basePath %>adminList" target="right"><span class="icon-caret-right"></span>管理员管理</a></li>
            <li><a href="<%=basePath %>classList" target="right"><span class="icon-caret-right"></span>班级管理</a></li>
            <li><a href="<%=basePath %>labList" target="right"><span class="icon-caret-right"></span>实验室管理</a></li>
            <li><a href="<%=basePath %>teacherList" target="right"><span class="icon-caret-right"></span>教师管理</a></li>
            <li><a href="<%=basePath %>editPass" target="right"><span class="icon-caret-right"></span>修改密码</a></li>

        </ul>
        <h2><span class="icon-pencil-square-o"></span>课程表管理</h2>
        <ul>
            <li><a href="<%=basePath %>courseList" target="right"><span class="icon-caret-right"></span>课程管理</a></li>
            <li><a href="<%=basePath %>main" target="right"><span class="icon-caret-right"></span>课程表</a></li>
            <li><a href="<%=basePath %>toAddCTR" target="right"><span class="icon-caret-right"></span>课程表管理</a></li>

        </ul>

</div>
</c:if>
<script type="text/javascript">
    $(function(){
        $(".leftnav h2").click(function(){
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function(){
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>

<c:choose>
    <c:when test="${sessionScope.admin != null}">
        <ul class="bread">
            <li><a href="{:U('Index/info')}" target="right" class="icon-home"> 首页</a></li>
            <li><a href="##" id="a_leader_txt">网站信息</a></li>
        </ul>
        <div class="admin">
            <iframe scrolling="auto" rameborder="0" src="<%=basePath%>/main" name="right" width="100%" height="100%"></iframe>
        </div>
    </c:when>
    <c:otherwise>
        <ul class="bread" style="margin-left:0px;">
            <li><a href="{:U('Index/info')}" target="right" class="icon-home"> 首页</a></li>
            <li><a href="##" id="a_leader_txt">网站信息</a></li>
        </ul>
        <div class="admin" style="left:0px;">
            <iframe scrolling="auto" rameborder="0" src="<%=basePath%>/main" name="right" width="100%" height="100%"></iframe>
        </div>
    </c:otherwise>
</c:choose>





</body>
</html>
